﻿@model  SnongPhoneShop.Models.DanhMucSanPham
@{
    ViewBag.Title = "Sửa thông tin danh mục";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<link href="~/Contents/StyleAdmin.css" rel="stylesheet" />
<h2 style="text-align:center">Sửa thông tin danh mục</h2>
<table border="1">
@using (Html.BeginForm("SuaDM","Admin",new{id=Model.MaDanhMuc}))
{
    <tr>
        <td>Tên danh mục</td>
        <td>@Html.TextBoxFor(m=>m.TenDanhMuc)</td>
    </tr>
    <tr>
        <td>Publish</td>
        <td>@Html.DropDownListFor(m => m.Publish, (SelectList)ViewBag.ListPublish, new { Class = "dr" })</td>
    </tr>
    <tr>
        <td>Loại danh mục</td>
        <td>@Html.DropDownListFor(m=>m.LoaiDanhMuc,(SelectList)ViewBag.ListLoaiDM,new { Class = "dr" })</td>
    </tr>   
    <tr>
        <td><input type="submit" value="Lưu"/></td>
    </tr>
}
</table>
